module.exports = plop => {
  plop.setGenerator("component", {
    description: "plop-use",
    prompts: [
      {
        type: "input",
        name: "component",
        message: "input component name"
      }
    ],
    actions: [
      {
        type: "add",
        path: "src/{{component}}/{{component}}.js",
        templateFile: "plop-templates/demo.hbs"
      },
      {
        type: "add",
        path: "src/{{component}}/{{component}}.css",
        templateFile: "plop-templates/demo.css.hbs"
      },
      {
        type: "add",
        path: "src/{{component}}/{{component}}.html",
        templateFile: "plop-templates/demo.html.hbs"
      }
    ]
  });
};
